package com.xzq.erp.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

@Data
public class ProductStockDTO {

    private Long id;

    @NotNull(message = "商品采购数量不能为空")
    private Integer actualCount;

    @NotNull(message = "商品采购日期不能为空")
    private LocalDate buyDate;

    @NotBlank(message = "商品采购人不能为空")
    private String buyer;

    @NotBlank(message = "商品采购人电话不能为空")
    private String buyerPhone;

    @NotNull(message = "商品采购计划数量不能为空")
    private Integer planCount;

    @NotNull(message = "商品ID不能为空")
    private Long productId;

    @NotNull(message = "商品采购状态不能为空")
    private Integer status;

    @NotNull(message = "仓库ID不能为空")
    private Long warehouseId;
}
